package com.heaven.study.strategy;

public class SubtractStrategy implements Strategy {

    private int num1, num2;

    public SubtractStrategy(int num1, int num2) {
        this.num1 = num1;
        this.num2 = num2;
    }

    @Override
    public void calc() {
        System.out.println(String.format("%s - %s = %s", this.num1, this.num2, this.num1 - this.num2));
    }
}
